<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>服装企业人事管理系统</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" th:href="@{/css/font.css}">
    <link rel="stylesheet" th:href="@{/css/xadmin.css}">
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/js/xadmin.js}"></script>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>
<body class="index">
<!-- 顶部开始 -->
<div th:replace="generalmanager/commons/bar::topbar"></div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div th:replace="generalmanager/commons/bar::sidebar"></div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <input type="hidden" th:value="${pc.id}" id="pc_id">
    <div class="layui-form-item layui-form-text">
        <label for="dmComment" class="layui-form-label">处理意见</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" id="dmComment" name="dmComment" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-input-inline">
        <div class="layui-inline layui-show-xs-block" style="display: block;">
            <label for="dmStatus" class="layui-form-label">处理结果</label>
            <select name="dmStatus" id="dmStatus">
                <option value="同意">同意</option>
                <option value="驳回">驳回</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label for="add" class="layui-form-label"></label>
        <button class="layui-btn" lay-filter="add" id="add">提交</button></div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
</body>
<script>
    $(function () {
        $("#add").click(function(){
            var pcId = $("#pc_id").val();
            var dmComment = $("#dmComment").val();
            var dmStatus = $("#dmStatus").val();
            if(dmComment === '' || dmStatus === '') {
                alert("表单内容不能为空");
                return false;
            }
            $.ajax({
                type: "post",
                url: "/pchangedeal",
                data: {
                    pcId:pcId,
                    dmComment:dmComment,
                    dmStatus:dmStatus
                },
                success: function (data) {
                    alert(data);
                    window.location.href="/dealempposchge";
                }
            });
        });
    });
</script>
</html>